package com.cn.wanxi.util;

import com.cn.wanxi.service.CompanyService;
import com.cn.wanxi.service.ICompanyService;
import com.cn.wanxi.service.INavService;
import com.cn.wanxi.service.NavService;
import com.cn.wanxi.service.impl.CompanyServiceImpl;
import com.cn.wanxi.service.impl.NavServiceImpl;

import javax.servlet.http.HttpServletRequest;

public class TopFootData {
    public static void setCompanyNavData(HttpServletRequest req) {
        ICompanyService companyService = new CompanyServiceImpl();
//        CompanyModel companyModel = companyService.getCompanyModel();
        req.setAttribute("companyModel", companyService.getCompanyModel());

        INavService navService=new NavServiceImpl();
//        NavService navService = new NavService();
//        navModels=navService.getNavModels();
        req.setAttribute("navModels", navService.getNavModels());
    }
}
